package com.yyl.service.impl;

import com.yyl.dao.userDao;
import com.yyl.entity.user;
import com.yyl.service.userService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class userServiceImpl implements userService {

	@Autowired
	private userDao uDao;


	@Override
	public user getUserByID(Integer id) {
		return uDao.getUserByID(id);
	}

	@Override
	public List<user> getAllUser() {
		return uDao.selectList(null);
	}
}
